package com.daxiasoftware.xxx.controller;

import java.util.Map;

import org.springframework.beans.factory.annotation.Autowired;
import org.springframework.stereotype.Controller;
import org.springframework.web.bind.annotation.GetMapping;
import org.springframework.web.bind.annotation.RequestMapping;

import com.daxiasoftware.xxx.service.RoleService;

@Controller
@RequestMapping("admin/role")
public class RoleController {
	@Autowired
	private RoleService roleService;

	@GetMapping("list")
	public String list(Map<String, Object> map) throws Exception {
		map.put("list", roleService.selectByMap(null));
		System.out.println("list");
		return "admin/role/role_list";
	}
}
